﻿@inject NavigationManager navi; 

<p role="status">Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">跳fetchdata</button>

@code {
    private int currentCount = 0;

    private void IncrementCount()
    {
        navi.NavigateTo("/fetchdata");
        currentCount = 11;
    }
}
